Get current timestamp in flutter or dart

128

var timestamp = DateTime.now().millisecondsSinceEpoch.toString()
print(timestamp);

Comments

Submit
0 Comments